package br.eck.stage.events;

import java.util.ArrayList;
import java.util.List;

import br.eck.model.base.DestrucatableObject;
import br.eck.stage.Stage;

public class AddDestructableObjEvent extends Event {
    private List<DestrucatableObject> ds;

    public AddDestructableObjEvent(Stage stage, List<DestrucatableObject> ds) {
        super(stage);
        this.ds = ds;
    }

    public AddDestructableObjEvent(Stage stage, DestrucatableObject ds) {
        super(stage);
        this.ds = new ArrayList<DestrucatableObject>();
        this.ds.add(ds);
    }

    @Override
    public void execute() {
        getStage().addDestructableObject(ds);
    }
}
